package com.liang.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Data
@Component
@Scope("singleton")
public class User {
    @Value("lbm") //等同于<property name="name" value="lbm" />
    private String name;
    private Integer age;
}
